<?php

App::uses('PsfmAdmin', 'Lib');

class AdminController extends AppController {

    public $uses = array();

    public function update_custom_data_models_cache() {
        PsfmAdmin::customDataModelsClearCache();
        PsfmAdmin::customDataModelsAssertInitializedData();
        $this->flash("Custom data models' cache are updated", '/');
    }
    
    public function update_static_tags() {
        PsfmAdmin::updateAllDocumentsTag();
        PsfmAdmin::updateAllDocumentsNonTaggedTag();
        $this->flash("Static tags updated", '/');
    }

}
